package cn.com.yitong.demo.demo1.dao;

import java.util.List;

import sqlmap.DemoTable1;
import cn.com.yitong.framework.exception.QueryException;
import cn.com.yitong.framework.exception.UpdateException;
import cn.com.yitong.framework.support.dao.MyBatisDao;

/**
 * @ClassName: DemoTable1Dao
 * @Description: DAO接口
 * @author: 孙孟（sm@yitong.com.cn）
 * @date: 2015-9-7 上午9:54:59
 */
public interface DemoTable1Dao extends MyBatisDao<DemoTable1>{

	
	/**
	 * @Title: queryDataByName
	 * @Description: 根据名称，查询数据
	 * @param name
	 * @return
	 * @throws QueryException
	 */
	public List<DemoTable1> queryDataByName(String name) throws QueryException;
	
	/**
	 * @Title: queryDataByType
	 * @Description: 根据类型，查询数据
	 * @param typeId
	 * @return
	 * @throws QueryException
	 */
	public List<DemoTable1> queryDataByType(String typeId) throws QueryException;
	
	/**
	 * @Title: executeUpdate
	 * @Description: 执行更新
	 * 自定义执行数据提交接口
	 * @param arg1
	 * @return
	 * @throws UpdateException
	 */
	public boolean executeUpdate(String arg1) throws UpdateException;
	
}
